<%@ page language="java" contentType="text/html; charset=iso-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Insert title here</title>
<style type="text/css">
<!--
BODY {
	PADDING-RIGHT: 0px;
	MARGIN-TOP: 0px;
	PADDING-LEFT: 0px;
	FONT-SIZE: 12px;
	BACKGROUND: #eee;
	PADDING-BOTTOM: 0px;
	MARGIN-LEFT: 0px;
	WIDTH: 270px;
	COLOR: #000;
	MARGIN-RIGHT: auto;
	PADDING-TOP: 0px;
	FONT-FAMILY: verdana, arial, sans-serif
}
.tableStyle {
	margin-top: 50px;
	margin-left: auto;
	margin-right: auto;
	empty-cells: show;
	border-top-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-style: solid;
	border-top-width: 2px;
	border-bottom-width: 2px;
	border-left-width: 2px;
	border-right-width: 2px;
	border-top-color: #b2d5d6;
	border-bottom-color: #b2d5d6;
	border-left-color: #b2d5d6;
	border-right-color: #b2d5d6;
	vertical-align: baseline;
	padding-bottom: 0px;
}

.co {
	width: 100px;
	vertical-align: top;
	padding-bottom: 8px;
	font-size: small;
}

.row {
	background-color: #eff5fa;
	color: #4e6a71;
}

.STYLE2 {
	font-size: 24px
}
-->
</style>
</head>
<body>
<f:view>
	<h:form>
		<table width="1280" height="540" border="0">
			<tr>
				<td width="75%" valign="top">
				<DIV align="center"><h:dataTable styleClass = "tableStyle"
					value="#{scheduleBackingBean.scheduleList}" var="schedule" headerClass="row"
					columnClasses="co,co,co,co" rowClasses = "row" cellpadding="4">
					<h:column>
						<f:facet name="header">
							<h:outputText value="ID" />
						</f:facet>
						<h:outputText value="#{schedule.id}"></h:outputText>
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="Topic" />
						</f:facet>
						<h:commandLink value="#{schedule.topic}"
							action="#{scheduleBackingBean.displaySchedule}">
							<f:param value="#{schedule.id}" name="scheduleId" />
						</h:commandLink>
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="Type" />
						</f:facet>
						<h:outputText value="#{schedule.type}"></h:outputText>
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="editable" />
						</f:facet>
						<h:outputText value="#{schedule.editable}"></h:outputText>
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="public" />
						</f:facet>
						<h:outputText value="#{schedule.publicAccess}"></h:outputText>
					</h:column>
					<h:column>
						<h:selectBooleanCheckbox value="#{schedule.selected}"
							title="selected" tabindex="0"></h:selectBooleanCheckbox>
					</h:column>
				</h:dataTable></DIV>
				</td>
				<td width="25%" align="center" valign="top">
				<p>&nbsp;</p>
				<p class="STYLE2"><a href="createSchedule.jsf">Create
				Schedule</a></p>
				<p class="STYLE2"><h:commandLink value="Delete Schedule"
					action="#{scheduleBackingBean.deleteSchedule}"></h:commandLink></p>
				<p class="STYLE2"><h:commandLink value="Merge Schedule"
					action="#{scheduleBackingBean.mergeSchedule}"></h:commandLink></p>
				</td>
			</tr>
		</table>
	</h:form>
</f:view>
</body>
</html>